:root {
  --ink: #1a1a1a;
  --ink-2: #3b3b3b;
  --mute: #6b6b6b;
  --faint: #9a9a9a;
  --line: #e3e3e3;
  --key: #efefef;
  --key-hover: #e4e4e4;
  --zebra: #fafafa;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
}
[hidden] { display: none !important; }
a { color: inherit; }
::selection { background: #1a1a1a; color: #fff; }

* { scrollbar-width: thin; scrollbar-color: #c4c4c4 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c4c4c4; border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #9a9a9a; background-clip: content-box; }

#dunes {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  image-rendering: pixelated;
  z-index: 0;
  pointer-events: none;
}

/* ---------- home ---------- */
.home {
  position: relative; z-index: 1;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 28px 16px 36px;
  gap: 10px;
}
.slide {
  width: min(660px, 100vw - 32px);
  height: min(400px, 50svh);
  position: relative;
  display: flex; align-items: flex-end; justify-content: center;
}
.camel {
  max-height: 100%;
  max-width: 100%;
  user-select: none;
  image-rendering: auto;
  animation: camel-in 1.4s cubic-bezier(.16, 1, .3, 1) backwards;
}
@keyframes camel-in { from { opacity: 0; transform: translateY(6px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }

.caption {
  font-size: 8.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--mute);
  text-decoration: none;
  text-align: center;
  min-height: 12px;
  max-width: min(660px, 100vw - 32px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.caption:hover { color: var(--ink); }
.caption.in { animation: cap-in .9s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes cap-in { from { opacity: 0; transform: translateY(3px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }

.block { width: min(318px, 100vw - 32px); margin-top: 6px; }
.lede {
  margin: 0;
  font-size: 9.5px;
  line-height: 14px;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: #2a2a2a;
  text-align: justify;
  hyphens: none;
}
.lede b { font-weight: 600; color: var(--ink); }

.keys { display: flex; gap: 3px; margin-top: 12px; }
.keys a {
  flex: 1 1 auto;
  padding: 0 4px;
  white-space: nowrap;
  height: 19px;
  display: flex; align-items: center; justify-content: center;
  background: var(--key);
  border-radius: 2px;
  font-size: 7.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #444;
  transition: background .15s, color .15s;
}
.keys a:hover { background: var(--key-hover); color: var(--ink); }

.open { margin-top: 10px; }
.open .row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 8px;
  padding: 3px 0;
  font-size: 7.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #555;
  text-decoration: none;
  border-top: 1px solid #f0f0f0;
}
.open .row:last-child { border-bottom: 1px solid #f0f0f0; }
.open .row span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.open .row:hover { color: var(--ink); background: #fafafa; }

.log-head { display: flex; justify-content: space-between; align-items: center; font-size: 9px; color: var(--faint); letter-spacing: .02em; }
.run { display: inline-flex; align-items: center; gap: 6px; color: var(--mute); }
.run i { width: 5px; height: 5px; background: var(--ink); animation: blink 1.1s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .12; } }
.feed {
  margin: 0;
  font-family: var(--mono);
  white-space: pre;
  overflow: hidden;
  color: #8f8f8f;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 38%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 38%);
  user-select: none;
}
.feed i { font-style: normal; color: #b8b8b8; }
.feed b { font-weight: 500; }
.feed b.y { color: var(--ink); }
.feed b.n { color: #777; }

.home .work { display: block; margin-top: 10px; text-decoration: none; background: #fff; box-shadow: 0 0 0 8px #fff; }
.home .work .log-head { font-size: 7.5px; letter-spacing: .06em; text-transform: uppercase; color: #555; padding-bottom: 4px; }
.home .work .run { gap: 5px; }
.home .work .run i { width: 4px; height: 4px; }
.home .work .feed { font-size: 6px; line-height: 8px; height: 56px; border-top: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0; padding: 0; }
.home .work:hover .log-head { color: var(--ink); }

.ca {
  appearance: none; border: 0;
  display: flex; align-items: center; gap: 8px;
  margin: 14px auto 0;
  height: 19px; padding: 0 9px;
  max-width: 100%;
  background: var(--key);
  border-radius: 2px;
  box-shadow: 0 0 0 6px #fff;
  font-family: var(--mono);
  font-size: 7.5px;
  color: #444;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.ca:hover { background: var(--key-hover); color: var(--ink); }
.ca + .ca { margin-top: 10px; }
.ca-k { text-transform: uppercase; letter-spacing: .06em; color: var(--faint); min-width: 34px; text-align: left; }
.ca.ok .ca-k { color: var(--ink); }
.ca-v { letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* the big launch key on the home column */
.go {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px;
  height: 34px; padding: 0 12px;
  background: var(--ink);
  border-radius: 2px;
  color: #fff;
  text-decoration: none;
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background .15s;
}
.go:hover { background: #000; }
.go .fee { color: #9a9a9a; letter-spacing: .04em; font-size: 7.5px; text-transform: none; }

/* coin page */
.coin-head { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: start; margin-bottom: 16px; }
.coin-head img { width: 96px; height: 96px; object-fit: cover; border: 1px solid #efefef; }
.coin-head h1 { margin: 2px 0 6px !important; }
.coin-head .sym { font-size: 11px; color: var(--faint); }
.badges { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.coins { border-top: 1px solid #efefef; }
.coin-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 8px 8px; border-bottom: 1px solid #efefef; text-decoration: none; }
.coin-row:hover { background: #fafafa; }
.coin-row img { width: 28px; height: 28px; object-fit: cover; border: 1px solid #efefef; }
.coin-row .cn { font-size: 11px; line-height: 16px; }
.coin-row .cs { font-size: 9.5px; color: var(--faint); }
.coin-row .cp { font-size: 9.5px; color: var(--ink-2); white-space: nowrap; }

/* ---------- inner pages ---------- */
.page { position: relative; z-index: 1; padding: 48px 16px 64px; }
.page.enter .card { animation: card-in .5s cubic-bezier(.16, 1, .3, 1) backwards; }
@keyframes card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.card { width: min(720px, 100%); margin: 0 auto; background: #fff; border: 1px solid var(--line); padding: 30px 36px 26px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid #efefef; margin-bottom: 26px; }
.wm { font-size: 12px; text-decoration: none; letter-spacing: .01em; display: inline-flex; align-items: center; gap: 9px; }
.wm-mark { height: 16px; width: auto; }
.tabs { display: flex; gap: 3px; flex-wrap: wrap; justify-content: flex-end; }
.tab { height: 21px; padding: 0 12px; display: inline-flex; align-items: center; background: var(--key); border-radius: 2px; font-size: 9.5px; text-decoration: none; color: #555; transition: background .15s, color .15s; }
.tab:hover { background: var(--key-hover); color: var(--ink); }
.tab.on { background: #d9d9d9; color: var(--ink); font-weight: 500; }

#content h1 { font-size: 13px; font-weight: 500; margin: 0 0 14px; letter-spacing: .01em; }
#content h2 { font-size: 12px; font-weight: 500; margin: 30px 0 10px; letter-spacing: .01em; }
#content p, #content td, .stages .t { font-size: 11px; line-height: 17.5px; color: var(--ink-2); }
#content p { margin: 0 0 12px; text-align: justify; hyphens: auto; text-transform: lowercase; }
#content a { text-underline-offset: 2px; text-decoration-color: #bbb; }
#content a:hover { text-decoration-color: var(--ink); }
#content .keep { text-transform: none; }

.kv { width: 100%; border-collapse: collapse; margin: 6px 0 4px; }
.kv td { padding: 6px 10px; vertical-align: top; text-align: left; text-transform: lowercase; }
.kv tr:nth-child(odd) td { background: var(--zebra); }
.kv td:first-child { width: 120px; color: var(--faint); white-space: nowrap; }
.kv a, .kv .keep { text-transform: none; word-break: break-all; }

.stages { margin: 10px 0 6px; }
.st { display: grid; grid-template-columns: 28px 120px 1fr; gap: 10px; padding: 7px 10px; transition: background .25s; }
.st:nth-child(odd) { background: var(--zebra); }
.st .n { font-size: 10px; color: var(--faint); line-height: 17.5px; }
.st .h { font-size: 11px; color: var(--mute); line-height: 17.5px; }
.st .t { text-transform: lowercase; text-align: justify; hyphens: auto; }
.st.on { background: #f0f0f0; }
.st.on .h, .st.on .n { color: var(--ink); }

.log { margin: 20px 0 6px; border: 1px solid #efefef; }
.log .log-head { padding: 7px 12px; border-bottom: 1px solid #f3f3f3; }
.log .feed { font-size: 9px; line-height: 12.5px; height: calc(12.5px * 16 + 16px); padding: 8px 12px; }

.chip { flex: none; height: 19px; padding: 0 9px; display: inline-flex; align-items: center; background: var(--key); border-radius: 2px; font-size: 9px; color: #555; white-space: nowrap; }
.chip.hot { background: var(--ink); color: #fff; }

/* launch form */
.form { margin: 6px 0 4px; }
.fr { display: grid; grid-template-columns: 120px 1fr; gap: 0 10px; align-items: center; padding: 5px 10px; }
.fr:nth-child(odd) { background: var(--zebra); }
.fr label { font-size: 11px; color: var(--faint); text-transform: lowercase; }
.fr input, .fr textarea {
  width: 100%; border: 0; background: transparent; padding: 4px 0;
  font: inherit; font-size: 11px; color: var(--ink); outline: none; border-bottom: 1px solid transparent;
}
.fr input:focus, .fr textarea:focus { border-bottom-color: #bbb; }
.fr textarea { resize: vertical; min-height: 44px; }
.fr input::placeholder, .fr textarea::placeholder { color: #c0c0c0; }
.fr .file { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 11px; color: var(--mute); padding: 4px 0; }
.fr .file:hover { color: var(--ink); }
.fr .file img { width: 22px; height: 22px; object-fit: cover; border: 1px solid #ddd; }
.actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.btn {
  appearance: none; border: 0; height: 21px; padding: 0 12px;
  display: inline-flex; align-items: center;
  background: var(--key); border-radius: 2px;
  font: inherit; font-size: 9.5px; color: #555; cursor: pointer; text-decoration: none;
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--key-hover); color: var(--ink); }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: #000; }
.btn[disabled] { opacity: .5; cursor: default; }
.hint { font-size: 9.5px; color: var(--faint); }
.err { font-size: 10px; color: #a33; margin-top: 8px; }

/* tracking */
.deposit { border: 1px solid #efefef; padding: 12px 14px; margin: 14px 0; }
.deposit .amt { font-size: 15px; font-weight: 500; margin: 4px 0 6px; }
.addr { font-size: 10.5px; word-break: break-all; color: var(--ink); background: var(--zebra); padding: 6px 8px; margin: 4px 0 8px; }
.steps { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid #efefef; }
.steps li { display: grid; grid-template-columns: 54px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid #f3f3f3; }
.steps .ts { font-size: 9.5px; color: var(--faint); line-height: 17.5px; }
.steps .k { display: block; font-size: 9px; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.steps .m { font-size: 11px; line-height: 17.5px; color: var(--ink-2); }
.steps .d { display: block; font-size: 9.5px; color: var(--mute); word-break: break-all; line-height: 14px; }
.steps li.pending .m::after { content: '■'; font-size: 7px; margin-left: 8px; animation: blink 1.1s steps(2, jump-none) infinite; }
.steps li.bad .m { color: #a33; }

/* manifest */
.comps { border-top: 1px solid #efefef; }
.comp { border-bottom: 1px solid #efefef; }
.comp summary {
  list-style: none;
  display: grid;
  grid-template-columns: 10px 1fr auto;
  grid-template-areas: "dot name prize" "dot stat stat";
  column-gap: 10px; row-gap: 2px;
  padding: 9px 8px;
  cursor: pointer;
  transition: background .15s;
}
.comp summary::-webkit-details-marker { display: none; }
.comp summary:hover { background: #fafafa; }
.comp[open] summary { background: #f5f5f5; }
.dot { grid-area: dot; width: 7px; height: 7px; margin-top: 5px; border: 1px solid #8a8a8a; border-radius: 50%; }
.dot.sealed { background: var(--ink); border-color: var(--ink); }
.dot.live { background: linear-gradient(90deg, #8a8a8a 50%, transparent 50%); }
.dot.failed { border-style: dashed; }
.cn { grid-area: name; font-size: 11px; line-height: 16px; }
.cp { grid-area: prize; font-size: 10.5px; line-height: 16px; color: var(--ink-2); white-space: nowrap; }
.cs { grid-area: stat; font-size: 9.5px; color: var(--faint); }
.comp .kv { margin: 0 0 10px; }
.note { margin-top: 22px !important; color: var(--faint) !important; font-size: 10px !important; }

.card-foot { margin-top: 34px; padding-top: 14px; border-top: 1px solid #efefef; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 9px; color: var(--faint); }

@media (max-width: 640px) {
  .slide { height: min(300px, 40svh); }
  .caption { white-space: normal; line-height: 13px; max-width: 300px; }
  .page { padding: 16px 16px 40px; }
  .card { padding: 20px 18px 18px; }
  .card-head { flex-direction: column; align-items: flex-start; }
  .tabs { justify-content: flex-start; }
  .tab { padding: 0 9px; }
  .st { grid-template-columns: 22px 1fr; }
  .st .t { grid-column: 1 / -1; }
  .kv td:first-child { width: 78px; }
  .fr { grid-template-columns: 1fr; }
  .comp summary { grid-template-columns: 10px 1fr; grid-template-areas: "dot name" "dot prize" "dot stat"; }
  .log .feed { font-size: 6px; line-height: 8.5px; height: calc(8.5px * 16 + 16px); padding: 8px 2px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
