/* ============================================================
   dusk — a ghost that trades at dusk.
   one screen. the sky is the ground, the horizon is one ember hairline at the bottom, the ledger sits in the sky.
   ============================================================ */

@font-face {
  font-family: "Departure Mono";
  src: url("fonts/DepartureMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --corners: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 5' shape-rendering='crispEdges' fill='%23b9aefc'%3E%3Crect x='0' y='0' width='5' height='1'/%3E%3Crect x='0' y='1' width='1' height='1'/%3E%3Crect x='0' y='2' width='1' height='1'/%3E%3Crect x='0' y='3' width='1' height='1'/%3E%3Crect x='0' y='4' width='1' height='1'/%3E%3C/svg%3E") top left / 10px 10px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 5' shape-rendering='crispEdges' fill='%23b9aefc'%3E%3Crect x='0' y='0' width='5' height='1'/%3E%3Crect x='4' y='1' width='1' height='1'/%3E%3Crect x='4' y='2' width='1' height='1'/%3E%3Crect x='4' y='3' width='1' height='1'/%3E%3Crect x='4' y='4' width='1' height='1'/%3E%3C/svg%3E") top right / 10px 10px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 5' shape-rendering='crispEdges' fill='%23b9aefc'%3E%3Crect x='0' y='0' width='1' height='1'/%3E%3Crect x='0' y='1' width='1' height='1'/%3E%3Crect x='0' y='2' width='1' height='1'/%3E%3Crect x='0' y='3' width='1' height='1'/%3E%3Crect x='0' y='4' width='5' height='1'/%3E%3C/svg%3E") bottom left / 10px 10px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 5' shape-rendering='crispEdges' fill='%23b9aefc'%3E%3Crect x='4' y='0' width='1' height='1'/%3E%3Crect x='4' y='1' width='1' height='1'/%3E%3Crect x='4' y='2' width='1' height='1'/%3E%3Crect x='4' y='3' width='1' height='1'/%3E%3Crect x='0' y='4' width='5' height='1'/%3E%3C/svg%3E") bottom right / 10px 10px no-repeat;
  --sky-0: #0f0d22;
  --sky-1: #171436;
  --sky-2: #251d52;
  --ember: #ff8a4c;
  --rose: #ff5d8f;
  --lilac: #b9aefc;
  --aqua: #7fe0d0;
  --ink: #f2efff;
  --ink-2: #b6b0d6;
  --ink-3: #8b85b5;
  --line: rgba(185, 174, 252, .12);
  --line-2: rgba(185, 174, 252, .24);
  --up: #7ef0b8;
  /* market cap heat: orange under $100k, yellow to $1m, green to $10m, blue above */
  --mc-1: #ff8a4c; --mc-2: #ffd166; --mc-3: #7ef0b8; --mc-4: #7fc8ff;
  --down: #ff6f7d;
  --mono: "Departure Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  --sans: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --glow: .6;            /* the horizon bloom. set by the clock in app.js */
  --day: 0;              /* 0 = night, 1 = midday. tints the low sky */
  --bloom-a: 255, 138, 76;
  --bloom-b: 255, 93, 143;
  --gutter: 48px;
  --top: 64px;
  --foot: 52px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scrollbar-color: var(--sky-2) var(--sky-0); }
body {
  margin: 0; min-height: 100svh;
  background:
    linear-gradient(180deg, var(--sky-0) 0%, var(--sky-1) 55%, color-mix(in oklab, var(--sky-2), #3c3390 calc(var(--day) * 100%)) 100%);
  color: var(--ink);
  font: 400 15px/1.5 var(--sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--ember);
  overflow-x: hidden;
  position: relative;
}
body::after {
  /* the bloom above the horizon */
  content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: 34vh; z-index: 0; pointer-events: none;
  background: radial-gradient(70% 100% at 50% 100%, rgba(var(--bloom-a), .5) 0%, rgba(var(--bloom-b), .16) 40%, rgba(var(--bloom-b), 0) 74%);
  opacity: var(--glow);
  transition: opacity 1.2s ease;
}
::selection { background: var(--ember); color: var(--sky-0); }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 0; }
svg { display: block; }
[hidden] { display: none !important; }
/* the pixel icon set: drawn on the mascot's grid, always whole pixels */
.ico { display: inline-block; flex: none; vertical-align: -1px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.px svg { shape-rendering: crispEdges; image-rendering: pixelated; }

.stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.star { position: absolute; width: 1px; height: 1px; background: #dcd7ff; }
.star.big { width: 2px; height: 2px; }
.star.warm { background: var(--ember); }


/* ------------------------------------------------------------ top */
.top {
  position: relative; z-index: 2; height: var(--top);
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  font: 13px/1 var(--mono);
}
.brand > svg { height: 32px; width: auto; color: var(--ink); }
.brand:hover { text-decoration: none; }
.top-right { display: flex; align-items: center; gap: 28px; }
.top nav { display: flex; gap: 22px; }
.top nav a, .top nav button { color: var(--ink-2); padding: 6px 0; }
.top nav a:hover, .top nav button:hover { color: var(--ink); }
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.status .dot { width: 6px; height: 6px; background: var(--ink-3); display: inline-block; }
.status[data-mode="live"] .dot { background: var(--up); animation: pulse 2.4s steps(2, jump-none) infinite; }
.status[data-mode="stale"] .dot { background: var(--ember); }
.status[data-mode="offline"] .dot { background: var(--down); }
.status[data-mode="connecting"] .dot { background: var(--ink-3); animation: pulse 1.2s steps(2, jump-none) infinite; }
@keyframes pulse { 0% { opacity: 1; } 100% { opacity: .25; } }

/* ------------------------------------------------------------ the page: who dusk is, then what he does */
.page { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.hero {
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(270px, 320px);
  align-items: center; gap: 56px;
  padding: 44px 0 72px;
}
.ghost-wrap { position: relative; }
.ghost { position: relative; margin: 0; }

/* the speech bubble: the coin dusk is eyeing right now. a pixel bubble, like the button, with a stepped tail */
.bubble {
  --bubble: var(--ink);
  position: absolute; right: -6px; bottom: calc(100% + 14px); z-index: 2;
  display: inline-flex; align-items: center; gap: 10px; max-width: 212px;
  padding: 8px 14px 8px 9px; color: var(--sky-0); background: var(--bubble);
  box-shadow: 0 -2px 0 var(--bubble), 0 2px 0 var(--bubble), -2px 0 0 var(--bubble), 2px 0 0 var(--bubble);
  transition: background .15s, box-shadow .15s;
}
.bubble::after {
  content: ""; position: absolute; left: 22px; top: calc(100% + 2px); width: 10px; height: 10px; background: var(--bubble);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 5' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h5v1H0zM0 1h4v1H0zM0 2h3v1H0zM0 3h2v1H0zM0 4h1v1H0z'/%3E%3C/svg%3E") center / 10px 10px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 5' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h5v1H0zM0 1h4v1H0zM0 2h3v1H0zM0 3h2v1H0zM0 4h1v1H0z'/%3E%3C/svg%3E") center / 10px 10px no-repeat;
}
.bubble:hover { --bubble: var(--ember); text-decoration: none; }
.bubble:focus-visible { outline-offset: 5px; }
.bubble.pop { animation: pop .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }
.bubble-coin { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; overflow: hidden; background: var(--sky-1); color: var(--ink); font: 12px/1 var(--mono); }
.bubble-coin img { width: 100%; height: 100%; object-fit: cover; }
.bubble-text { display: flex; flex-direction: column; min-width: 0; }
.bubble-text small { font: 11px/1.3 var(--mono); color: #3a3366; }
.bubble-text b { font: 500 15px/1.25 var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bubble-line { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.bubble-line .mc { flex: none; font: 12px/1 var(--mono); }
.bubble .mc[data-tier="1"] { color: #b3400f; } .bubble .mc[data-tier="2"] { color: #855600; } .bubble .mc[data-tier="3"] { color: #03704f; } .bubble .mc[data-tier="4"] { color: #1d4ed8; }
.bubble:hover .mc[data-tier] { color: var(--sky-0); }
.ghost svg { width: 208px; height: 273px; overflow: visible; }
.ghost::after {
  content: ""; position: absolute; left: 50%; bottom: -26px; width: 240px; height: 60px; z-index: -1;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(var(--bloom-a), .5), rgba(var(--bloom-a), 0) 70%);
  filter: blur(9px);
  opacity: var(--glow);
  transition: transform .36s steps(3, end), opacity .36s steps(3, end);
}
.ghost.peek::after { transform: translateX(-50%) scale(.62); opacity: calc(var(--glow) * .55); }   /* he floats, so his glow on the ground shrinks */
/* Source-art coordinates: articulated parts stay attached at their sleeve/hood edge. */
.dusk-breathe { animation: dusk-breathe 2.4s steps(1, end) infinite; }
@keyframes dusk-breathe {
  0%, 84%, 100% { transform: translateY(0); }
  17%, 67% { transform: translateY(-5px); }
  34%, 50% { transform: translateY(-10px); }
}
[data-dusk-part] { transform-box: view-box; }
/* peek under the hood: hover (or tap, or enter) and the hood lifts away to show the little ghost underneath */
.ghost { outline-offset: 6px; }
.ghost .dusk-hood, .ghost .dusk-true { transition: opacity .36s steps(3, end), transform .36s steps(3, end); }
.ghost.peek .dusk-hood { opacity: 0; transform: translateY(-48px); }
.ghost.peek .dusk-true { opacity: 1; }
.ghost.peek .dusk-true { animation: dusk-float 2.8s steps(4, end) infinite; }   /* body, eyes and lids float together */
@keyframes dusk-float { 50% { transform: translateY(-26px); } }
.dusk-ear-left { transform-origin: 590px 304px; animation: ear-left 3.2s steps(8, end) infinite; }
.dusk-ear-right { transform-origin: 866px 345px; animation: ear-right 3.2s steps(8, end) -.4s infinite; }
.dusk-hand-left { transform-origin: 616px 766px; animation: hand-left 2.4s steps(6, end) infinite; }
.dusk-hand-right { transform-origin: 753px 777px; animation: hand-right 2.4s steps(6, end) -.3s infinite; }
.dusk-foot-left { transform-origin: 615px 880px; animation: foot-left 2.4s steps(6, end) infinite; }
.dusk-foot-right { transform-origin: 790px 880px; animation: foot-right 2.4s steps(6, end) infinite; }
@keyframes ear-left { 0%,100% { transform: skewX(-3deg); } 50% { transform: skewX(6deg); } }
@keyframes ear-right { 0%,100% { transform: skewY(-4deg); } 50% { transform: skewY(6deg); } }
@keyframes hand-left { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(4deg); } }
@keyframes hand-right { 0%,100% { transform: rotate(3deg); } 50% { transform: rotate(-4deg); } }
@keyframes foot-left { 0%,100% { transform: skewX(3deg) scaleY(1); } 50% { transform: skewX(-6deg) scaleY(.94); } }
@keyframes foot-right { 0%,100% { transform: skewX(-3deg) scaleY(.96); } 50% { transform: skewX(6deg) scaleY(1); } }
.dusk-blink { visibility: hidden; }
.dusk-eyes-open { animation: eyes-open 6.2s steps(1, end) infinite; }
.dusk-blink { animation: eyes-shut 6.2s steps(1, end) infinite; }
@keyframes eyes-open { 0%, 94% { visibility: visible; } 94.01%, 96.2% { visibility: hidden; } 96.21%, 100% { visibility: visible; } }
@keyframes eyes-shut { 0%, 94% { visibility: hidden; } 94.01%, 96.2% { visibility: visible; } 96.21%, 100% { visibility: hidden; } }
[data-dusk-paused] .dusk-breathe, [data-dusk-paused] .dusk-eyes-open,
[data-dusk-paused] .dusk-blink, [data-dusk-paused] [data-dusk-part] { animation-play-state: paused; }

.lore { min-width: 0; }
.tagline { margin: 0 0 20px; font: 400 clamp(2.25rem, 3.4vw, 3.1rem)/1.04 var(--sans); letter-spacing: -.035em; max-width: 13ch; text-wrap: balance; }
.lore-copy { margin: 0 0 32px; max-width: 44ch; font: 400 17px/1.65 var(--sans); color: var(--ink-2); text-wrap: pretty; }
.actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.lore-link { display: inline-flex; align-items: center; gap: 8px; font: 13px/1 var(--mono); color: var(--ink-2); padding: 8px 0; }
.lore-link:hover { color: var(--ink); text-decoration: none; }
.lore-link .ico { transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.lore-link:hover .ico { transform: translateX(3px); }
.stats { margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 2px 16px; font: 12px/1.9 var(--mono); color: var(--ink-2); }
.stats b { font-weight: 400; color: var(--ink); }
.stats b.up { color: var(--up); }
.stats b.down { color: var(--down); }
.stats .stat { white-space: nowrap; }
.stats .sep { display: none; }
.up { color: var(--up); }
.down { color: var(--down); }

.btn {
  --btn: var(--ink);
  display: inline-block; margin: 2px;
  font: 13px/1 var(--mono); color: var(--sky-0);
  background: var(--btn); padding: 12px 16px;
  box-shadow: 0 -2px 0 var(--btn), 0 2px 0 var(--btn), -2px 0 0 var(--btn), 2px 0 0 var(--btn);
  transition: background .15s, box-shadow .15s;
}
.btn:hover { --btn: var(--ember); text-decoration: none; }
.btn:active { --btn: var(--rose); }
.btn .soon { color: color-mix(in oklab, var(--sky-0), transparent 22%); }

.runs { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; width: min(100%, 440px); margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-3); }

/* the contract box: $dusk's address on robinhood chain, one click to copy. same pixel corners as the sheet */
.ca { display: grid; gap: 11px; width: min(100%, 440px); margin: 28px 0 0; padding: 14px 16px 15px; border: 1px solid var(--line-2); border-radius: 0;
  background: var(--corners), rgba(10, 9, 23, .55); background-origin: border-box; color: var(--ink-2); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s; }
.ca:disabled { cursor: default; }
.ca-head { display: flex; align-items: center; gap: 10px; font: 11px/1 var(--mono); color: var(--ink-3); }
.ca-label { padding: 3px 5px; margin: 2px; color: var(--sky-0); background: var(--ink); box-shadow: 0 -2px 0 var(--ink), 0 2px 0 var(--ink), -2px 0 0 var(--ink), 2px 0 0 var(--ink); }
.ca-action { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--ink-2); transition: color .15s; }
.ca-action .ico { width: 14px; height: 14px; }
.ca[data-state="soon"] .ca-action .ico, .ca[data-state="live"] .ico-check, .ca[data-state="copied"] .ico-copy { display: none; }
.ca-address { font: 13px/1.45 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.ca[data-state="soon"] .ca-address { color: var(--ink-3); }
.ca[data-state="soon"] .ca-address::after { content: ""; display: inline-block; width: 7px; height: 13px; margin-left: 5px; vertical-align: -2px; background: currentColor; animation: ca-blink 1.1s steps(1, end) infinite; }
@keyframes ca-blink { 50% { opacity: 0; } }
.ca:not(:disabled):hover { border-color: var(--lilac); background-color: rgba(185, 174, 252, .04); }
.ca:not(:disabled):hover .ca-action, .ca[data-state="copied"] .ca-action { color: var(--ink); }
.ca[data-state="copied"] { border-color: var(--lilac); }
.x-link { display: inline-flex; align-items: center; }
.mc { font-variant-numeric: tabular-nums; white-space: nowrap; }
.mc[data-tier="1"] { color: var(--mc-1); } .mc[data-tier="2"] { color: var(--mc-2); } .mc[data-tier="3"] { color: var(--mc-3); } .mc[data-tier="4"] { color: var(--mc-4); }
@media (max-width: 420px) { .ca-address { font-size: 12px; } }
@media (max-width: 360px) { .ca-chain { display: none; } }

/* the character sheet: a small trading card for a ghost who trades */
.sheet { border: 1px solid var(--line-2); border-radius: 0; background: var(--corners), rgba(10, 9, 23, .55); background-origin: border-box; padding: 18px 20px 6px; }
.sheet-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.sheet-head img { width: 34px; height: auto; }
.sheet-head span { margin-left: auto; }
.sheet-head b { font: 500 17px/1 var(--sans); letter-spacing: -.01em; }
.sheet-head span { font: 11px/1 var(--mono); color: var(--ink-3); }
.sheet dl { margin: 0; }
.sheet dl > div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); }
.sheet dl > div:last-child { border-bottom: 0; }
.sheet dt { font: 11px/1.7 var(--mono); color: var(--ink-3); }
.sheet dd { margin: 0; font: 400 14px/1.5 var(--sans); color: var(--ink); }
.sheet .warm { color: var(--ember); }
.page > .profile-board { margin-bottom: 128px; }
.runs-label { font: 11px/1 var(--mono); }
.runs .mark { display: inline-flex; align-items: center; color: var(--ink-2); transition: color .15s; }
.runs .mark:hover { color: var(--ink); text-decoration: none; }
.runs .fomo { gap: 6px; }
.runs .fomo svg { height: 15px; width: auto; }
.runs .fomo svg:first-child { height: 12px; }
.runs .rhc svg { height: 15px; width: auto; }
.runs .jev { gap: 6px; font: 500 15px/1 var(--sans); letter-spacing: -.02em; }
/* jev's knot, from typesafe's icon: a single-colour mask so it takes the row's ink like the other marks */
.jev-mark { display: inline-block; flex: none; width: 11px; height: 16px; background: currentColor;
  -webkit-mask: url("assets/jev-mark.png") center / contain no-repeat; mask: url("assets/jev-mark.png") center / contain no-repeat; }
.runs .pons { gap: 6px; font: 500 15px/1 var(--sans); letter-spacing: -.02em; }
.runs .pons svg { height: 14px; width: auto; }

/* ------------------------------------------------------------ the ledger */
.board { display: flex; flex-direction: column; min-height: 0; max-height: 100%; box-shadow: inset 0 0 0 1px var(--line-2); padding: 18px 22px 14px; background: rgba(15, 13, 34, .35); }
.board-head { display: flex; align-items: baseline; gap: 16px; padding-bottom: 12px; }
.board-head h2 { margin: 0; font: 500 1rem/1 var(--sans); letter-spacing: -.01em; }
.synced { font: 11px/1 var(--mono); color: var(--ink-3); }
.filters { margin-left: auto; display: flex; gap: 14px; font: 11px/1 var(--mono); }
.filters button { color: var(--ink-3); padding: 4px 0; border-bottom: 1px solid transparent; }
.filters button:hover { color: var(--ink); }
.filters button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ember); }

.row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 84px 84px 44px; column-gap: 14px; align-items: center; font: 13px/1 var(--mono); }
.row.head { color: var(--ink-3); font-size: 11px; padding: 8px 0 10px; border-bottom: 1px solid var(--line-2); }
.rows { list-style: none; margin: 0; padding: 0; overflow-y: auto; min-height: 0; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.rows::-webkit-scrollbar { width: 6px; }
.rows::-webkit-scrollbar-thumb { background: var(--line-2); }
.rows.scrolls { padding-bottom: 18px; mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); }
.rows .row { padding: 13px 0; border-bottom: 1px solid var(--line); }
.rows .row:hover { background: rgba(185, 174, 252, .04); }
.row.day { display: block; padding: 14px 0 4px; color: var(--ink-3); font-size: 11px; letter-spacing: .04em; border-bottom: 0; }
.row.empty { display: block; padding: 40px 0; text-align: center; color: var(--ink-2); font: 400 14px/1.5 var(--sans); }
.row .t { color: var(--ink-3); }
.row .side { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .side b { font-weight: 400; }
.row .side.buy b { color: var(--up); }
.row .side.sell b { color: var(--down); }
.row .sym { color: var(--ink); font: 500 14px/1 var(--sans); letter-spacing: .01em; margin-left: 4px; }
.row .side small { color: var(--ink-3); font-size: 11px; margin-left: 8px; }
.row .usd, .row .pnl { text-align: right; }
.row .usd { color: var(--ink); }
.row .pnl { color: var(--ink-3); }
.row .pnl.up { color: var(--up); }
.row .pnl.down { color: var(--down); }
.row .tx { text-align: right; }
.row .tx a { color: var(--ink-3); border-bottom: 1px solid var(--line-2); }
.row .tx a:hover { color: var(--ink); text-decoration: none; border-color: var(--ink); }
.row.emerge { animation: emerge .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes emerge { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0); } }
.note { margin: 12px 0 0; font: 12px/1.6 var(--mono); color: var(--ink-2); }
.note:empty { display: none; }

/* ------------------------------------------------------------ the footer: the sky ends at an ember horizon, night below it */
.site-foot { position: relative; z-index: 2; background: linear-gradient(180deg, #0d0b20, #09081a); }
.site-foot::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, rgba(var(--bloom-b), 0), var(--ember) 28%, var(--ember) 72%, rgba(var(--bloom-b), 0));
  opacity: .8;
  box-shadow: 0 0 16px rgba(var(--bloom-a), calc(var(--glow) * .75));
}
.site-foot::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 150px; pointer-events: none;
  background: radial-gradient(55% 100% at 50% 100%, rgba(var(--bloom-a), .34), rgba(var(--bloom-b), .1) 45%, rgba(var(--bloom-b), 0) 75%);
  opacity: var(--glow);
}
.foot-inner { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 2fr); gap: 56px; padding: 64px 0 52px; }
.foot-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.foot-logo:hover { text-decoration: none; }
.foot-logo img { width: 46px; height: auto; }
.foot-wordmark { height: 24px; width: auto; }
.foot-brand p { margin: 20px 0 0; max-width: 34ch; font: 400 14px/1.7 var(--sans); color: var(--ink-2); }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-cols h2 { margin: 0 0 18px; font: 400 11px/1 var(--mono); color: var(--ink-3); }
.foot-cols a, .foot-cols button { display: block; width: fit-content; margin: 0 0 12px; font: 400 14px/1.4 var(--sans); color: var(--ink-2); text-align: left; }
.foot-cols a:hover, .foot-cols button:hover { color: var(--ink); text-decoration: none; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px 24px; flex-wrap: wrap; padding: 22px 0 30px; border-top: 1px solid var(--line); font: 12px/1.5 var(--mono); color: var(--ink-3); }
.foot-bottom .copy { font: 400 12px/1.5 var(--sans); }

/* ------------------------------------------------------------ how, as a sheet */
.how { border: 1px solid var(--line-2); border-radius: 12px; padding: 0; background: #1c1843; color: var(--ink); max-width: 720px; width: calc(100% - 32px); max-height: calc(100dvh - 40px); --sheet: #1c1843; box-shadow: 0 24px 48px rgba(6, 5, 18, .55); overscroll-behavior: contain; scrollbar-width: thin; }
.how::backdrop { background: rgba(15, 13, 34, .72); }
.how[open] { animation: rise .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.how .how-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 26px; background: var(--sheet); border-bottom: 1px solid var(--line-2); position: sticky; top: 0; z-index: 1; }
.how h2 { margin: 0; font: 500 1.15rem/1 var(--sans); letter-spacing: -.01em; }
.how #how-close { font: 12px/1 var(--mono); color: var(--ink-2); padding: 10px 0 10px 12px; }
.how #how-close:hover { color: var(--ink); }
.how-body { padding: 22px 26px 26px; }
.how p { margin: 0; font: 400 14px/1.75 var(--sans); color: var(--ink-2); }
.how p + p { margin-top: 10px; }
.how .how-intro { font-size: 17px; line-height: 1.6; color: var(--ink); text-wrap: pretty; }
.how-mode { margin: 22px 0 8px; padding: 16px 18px; background: rgba(127,224,208,.045); border: 1px solid rgba(127,224,208,.15); border-radius: 7px; }
.how-mode > strong { display: block; margin-bottom: 7px; font: 400 11px/1.7 var(--mono); color: var(--aqua); }
.how a { color: var(--aqua); text-decoration: underline; text-underline-offset: 3px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps > li { display: grid; grid-template-columns: 26px minmax(0,1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.step-number { padding-top: 3px; font: 11px/1.6 var(--mono); color: var(--aqua); }
.how h3 { margin: 0 0 8px; font: 500 17px/1.4 var(--sans); color: var(--ink); }
.how details { margin-top: 12px; }
.how summary { cursor: pointer; width: fit-content; display: inline-flex; align-items: center; gap: 8px; list-style: none; font: 11px/1.8 var(--mono); color: var(--lilac); }
.how summary::-webkit-details-marker { display: none; }
.how summary::before { content: ""; flex: none; width: 10px; height: 10px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 5' shape-rendering='crispEdges' fill='%23000'%3E%3Crect x='2' y='0' width='1' height='1'/%3E%3Crect x='2' y='1' width='1' height='1'/%3E%3Crect x='0' y='2' width='5' height='1'/%3E%3Crect x='2' y='3' width='1' height='1'/%3E%3Crect x='2' y='4' width='1' height='1'/%3E%3C/svg%3E") center / 10px 10px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 5' shape-rendering='crispEdges' fill='%23000'%3E%3Crect x='2' y='0' width='1' height='1'/%3E%3Crect x='2' y='1' width='1' height='1'/%3E%3Crect x='0' y='2' width='5' height='1'/%3E%3Crect x='2' y='3' width='1' height='1'/%3E%3Crect x='2' y='4' width='1' height='1'/%3E%3C/svg%3E") center / 10px 10px no-repeat; }
.how details[open] > summary::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 5' shape-rendering='crispEdges' fill='%23000'%3E%3Crect x='0' y='2' width='5' height='1'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 5' shape-rendering='crispEdges' fill='%23000'%3E%3Crect x='0' y='2' width='5' height='1'/%3E%3C/svg%3E"); }
.how summary:hover { color: var(--ink); }
.how-detail, .how-rules { margin: 12px 0 0; padding-left: 15px; border-left: 1px solid var(--line-2); }
.how-detail p, .how-rules dd { font-size: 13px; }
.how-rules > div + div { margin-top: 12px; }
.how-rules dt { font: 400 11px/1.8 var(--mono); color: var(--ink); }
.how-rules dd { margin: 2px 0 0; line-height: 1.7; color: var(--ink-2); }
.how-runtime { padding-top: 24px; }
.jev-card { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(10, 9, 23, .45); color: var(--ink); text-decoration: none; }
.how a.jev-card { text-decoration: none; }
.jev-card:hover { border-color: var(--lilac); }
.jev-card img { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.jev-card b { display: block; font: 500 15px/1.3 var(--sans); color: var(--ink); }
.jev-card small { display: block; margin-top: 3px; font: 400 13px/1.5 var(--sans); color: var(--ink-2); }
.how .how-fine { margin-top: 18px; font: 400 13px/1.6 var(--sans); color: var(--ink-3); }
@media (max-width: 620px) {
  .how { max-height: calc(100dvh - 24px); width: calc(100% - 24px); }
  .how .how-head { padding: 12px 18px; }
  .how-body { padding: 18px; }
  .steps > li { gap: 10px; grid-template-columns: 23px minmax(0,1fr); }
  .how-mode { padding: 13px; }
}

/* ------------------------------------------------------------ small screens: the one screen becomes a scroll */
@media (max-width: 1120px) {
  .hero { grid-template-columns: auto minmax(0, 1fr); gap: 36px 48px; }
  .hero .ghost-wrap { grid-row: 1 / span 2; }
  .sheet { grid-column: 2; max-width: 440px; }
}
@media (max-width: 980px) {
  :root { --gutter: 24px; }
  .foot-top { grid-template-columns: 1fr; gap: 44px; padding: 52px 0 40px; }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 32px; padding: 28px 0 56px; }
  .hero .ghost-wrap { grid-row: auto; }
  .hero { padding-top: 92px; }
  .bubble { right: auto; left: 50%; max-width: min(212px, calc(50vw - 16px)); }
  .ghost svg { width: 152px; height: 200px; }
  .tagline, .lore-copy { margin-inline: auto; }
  .actions, .runs { justify-content: center; }
  .runs, .ca { margin-inline: auto; row-gap: 16px; }
  .runs-label { flex-basis: 100%; }
  .sheet { grid-column: auto; width: 100%; max-width: 440px; text-align: left; }
  .page > .profile-board { margin-bottom: 72px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .top { font-size: 12px; }
  .top-right { gap: 16px; }
  .top nav { gap: 14px; }
  .status .label { display: none; }
  .board { padding: 14px 14px 12px; }
  .board-head { flex-wrap: wrap; gap: 10px; }
  .filters { margin-left: 0; width: 100%; }
  .row { grid-template-columns: 44px minmax(0, 1fr) 70px; row-gap: 6px; }
  .row.head .pnl, .row.head .tx { display: none; }
  .row .pnl { grid-column: 2; text-align: left; }
  .row .pnl:not(.up):not(.down) { display: none; }
  .row .tx { grid-column: 3; }
}

@media (prefers-reduced-motion: reduce) {
  .dusk-breathe, .dusk-eyes-open, .dusk-blink, [data-dusk-part], .status .dot, .how[open], .row.emerge, .bubble.pop, .ca-address::after, .ghost.peek .dusk-true { animation: none !important; }
  .ghost .dusk-hood, .ghost .dusk-true { transition: none; }
  .ghost.peek .dusk-hood { transform: none; }
  .dusk-eyes-open { visibility: visible; }
  .dusk-blink { visibility: hidden; }
}
